<script>
export default {
  name: "sun",
  inject:["name","age","array"]
}
</script>

<template>
  <div class="layui-panel sun">
    <div style="padding: 32px;">
      <h1>sun组件</h1>
      <h1>App组件使用provide传递过来的的name是：{{name}}  age是：{{age}} array是：{{array}}</h1>
    </div>
  </div>
</template>

<style scoped lang="less">
.sun {
  height: 200px;
}
</style>